<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
</head>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>
{literal}
<SCRIPT language=JavaScript>
var valid = new Validation();

function checkForm(){
	if (valid.isEmpty("name","User name")){
		return false;
	}else if (!valid.isCompareEN("password1", "password2", "Password", 6, 12)){
		return false;
	}else if (!valid.isEmailEN("email", "Email", "allowEmpty")){
		return false;
	}else{
		return true;
	}
}
</script>
{/literal}
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
  <table width="100%" cellspacing="0" cellpadding="4">
    <tr bgcolor="#E4E4E4"> 
      <td width="20%">&nbsp;Edit User</td>
      <td width="70%"><font color="#FF0000">&nbsp;{$error_message}</font></td>
      <td width="10%" align="right">&nbsp;<A href="{$backurl}" target="_self">Back</A>&nbsp;&nbsp;</td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">User Group:</td>
      <td colspan="2"><select name="groupid" id="groupid">{html_options options=$arrUserGroup selected=$groupidS}</select>
	  <font color="#FF0000">*</font></td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="name" type="text" id="name" value="{$name}" maxlength="20" readonly>
      &nbsp; <font color="#FF0000"> *</font> </td>
    </tr>
	    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Password:</td>
      <td height="23" colspan="2"> 
        &nbsp;&nbsp;
        <input name="password1" type="password" id="password1" value="{$password1}" maxlength="12">
         &nbsp;<font color="#FF0000"> *</font> </td>
    </tr>

    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Re-type Password :</td>
      <td colspan="2">&nbsp;&nbsp;
      <input name="password2" type="password" id="password2" value="{$password2}" maxlength="12"> 
       &nbsp;<font color="#FF0000">*</font></td>
    </tr>

	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">First Name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="FirstName" type="text" id="FirstName" value="{$FirstName}" maxlength="20">
      &nbsp;</td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Middle Name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="MiddleName" type="text" id="MiddleName" value="{$MiddleName}" maxlength="20"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Last Name:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="LastName" type="text" id="LastName" value="{$LastName}" maxlength="20"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Zip Code:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="zipcode" type="text" id="zipcode" value="{$zipcode}" maxlength="20"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Phone:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="telephone" type="text" id="telephone" value="{$telephone}" maxlength="20">
      &nbsp;</td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Cellular Phone:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="mobile" type="text" id="mobile" value="{$mobile}" maxlength="11"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Tax:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="fax" type="text" id="fax" value="{$fax}" maxlength="20"></td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Email:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="email" type="text" id="email" value="{$email}" size="40" maxlength="60">
      &nbsp;</td>
    </tr>
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">URL:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="url" type="text" id="url" value="{$url}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Password Question:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="pwdQuestion" type="text" id="pwdQuestion" value="{$pwdQuestion}" size="40" maxlength="80"></td>
    </tr>
    
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Password Answer:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="pwdAnswer" type="text" id="pwdAnswer" value="{$pwdAnswer}" size="40" maxlength="80"></td>
    </tr>
    
	<tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td height="30" align="right">Address:</td>
      <td colspan="2"> 
        &nbsp;&nbsp;
        <input name="address" type="text" id="address" value="{$address}" size="50" maxlength="250"></td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
      <td align="right">Status:</td>
      <td colspan="2">{html_radios name="status" options=$arrStatus checked=$StatusS separator=" "}
	  <font color="#FF0000">*</font></td>
    </tr>
    <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
      <td height="23"></td>
      <td height="23" colspan="2">
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="Submit" onClick="return checkForm()">
        <input type="reset" name="Reset" value="Reset">
        <input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
      <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
      <input name="id" type="hidden" id="id" value="{$id}">
      <input name="backurl" type="hidden" id="backurl" value="{$backurl}"></td>
    </tr>
  </table>
</form>
</body>
</html>

